package edu.yctc.kc.constant;

import java.util.List;

import com.google.common.collect.ImmutableList;

/**
 * 
 * @className TO
 * @description 目的地枚举
 * @author zyj
 * @date 2019年12月28日
 *
 */
public class To {

    public static final String CHINA = "中国";
    public static final String EURO_AMERICAN = "欧美";
    public static final String OTHERS = "非欧美";

    public static final List<String> ALL_TO = ImmutableList.of(CHINA, EURO_AMERICAN, OTHERS);

    public static boolean isLegal(String to) {
        for (String string : ALL_TO) {
            if (string.equals(to)) {
                return true;
            }
        }
        return false;
    }
}
